﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:kiosk="clr-namespace:FCS.Kiosk"
		x:Class="FCS.Kiosk.MainWindow"
		Title="Kiosk"
		Height="768" Width="1024"
		WindowStyle="None"
		SnapsToDevicePixels="True"
		ShowInTaskbar="True"
		ResizeMode="NoResize" Left="0" Top="0"
		Icon="icon.ico">

	<Window.Resources>
		<Style x:Key="AboutTitle" TargetType="TextBlock">
			<Setter Property="FontSize" Value="18" />
			<Setter Property="FontWeight" Value="Bold" />
		</Style>
		<Style x:Key="AboutInfo" TargetType="TextBlock">
			<Setter Property="FontFamily" Value="Verdana" />
			<Setter Property="FontSize" Value="16" />
			<Setter Property="Margin" Value="5, 5, 5, 5" />
			<Setter Property="TextWrapping" Value="Wrap" />
		</Style>
	</Window.Resources>

	<TabControl Name="Tabs" SelectionChanged="Tabs_SelectionChanged">
		<TabItem Header="Control the Fountain!" Name="ControlTab" FontSize="16">
			<kiosk:FountainControl>
			</kiosk:FountainControl>
		</TabItem>

		<!--
		<TabItem Name="WebcamTab" Header="View Webcams" FontSize="16">
			<kiosk:Webcams x:Name="WebcamsControl"></kiosk:Webcams>
		</TabItem>-->

		<TabItem Header="About this Kiosk" FontSize="16">
			<StackPanel>
				<TextBlock Style="{StaticResource AboutTitle}">Who did this?</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">This kiosk is brought to you by the Enlight Fountain Control Group student organization, the group responsible for the upkeep of the Maquina fountain. The fountain has always had some cool things it could do; we decided it was time to show it off!</TextBlock>

				<TextBlock Style="{StaticResource AboutTitle}">How does this all work?</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">The kiosk in front of you is simply a computer running Microsoft Windows 7, hidden in the black box by your feet. It's running some special software we wrote in C-Sharp. When you press a button, a message is sent to a server running in the Engineering Centers Building. This server processes it into a lower-level form, and sends it to a National Instruments cRIO underneath the fountain. This cRIO sends compressed air up the fountain in plastic tubes. You can see these tubes if you look close! These plastic tubes finally switch the valves that you see on the fountain.</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">In short, each press results in a message that must travel almost a half mile passing through three computers and hundreds of wires, but all happens in a few tenths of a second!</TextBlock>

				<TextBlock Style="{StaticResource AboutTitle}">How else can I play with the fountain?</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">You can also control it with the "bollards", the stainless steel posts you see if you look outside. On some of them there is a small black sensor facing north. From left to right, they do:</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">- Turn all valves on and spray water</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">- Make it all run slower</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">- Make it all run faster</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">- Turn off valves while you hold your hand over it</TextBlock>
				<!--<TextBlock Style="{StaticResource AboutInfo}">Soon, you'll also be able to control the fountain from our website at <Hyperlink Click="WebsiteHyperlink_Click">http://enlight.engr.wisc.edu/</Hyperlink></TextBlock>-->

				<TextBlock Style="{StaticResource AboutTitle}">This is really cool! How do I get involved?</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">We'd love you to stop by and check out what we're up to! We want any software, hardware, or mechanical types. Check out our website at <Hyperlink Click="WebsiteHyperlink_Click">http://enlight.engr.wisc.edu/</Hyperlink> for more information.</TextBlock>
				<TextBlock Style="{StaticResource AboutInfo}">We have our meetings every Tuesday at 6pm in 1099 ECB! Come check us out!</TextBlock>
			</StackPanel>
		</TabItem>

		<TabItem Header="Visit our Website" Name="WebsiteTab" FontSize="16">
			<WebBrowser Name="WebsiteBrowser" Navigating="WebsiteBrowser_Navigating" />
		</TabItem>
		<TabItem Header="Admin" Name="AdminTab" FontSize="16" >
			<Grid Height="306" HorizontalAlignment="Left" Name="grid1" VerticalAlignment="Top" Width="204" Margin="396,130,0,0">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="*" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="*" />
					<RowDefinition Height="*" />
					<RowDefinition Height="*" />
					<RowDefinition Height="*" />
				</Grid.RowDefinitions>

				<Button Content="*" Grid.Column="0" Grid.Row="3" FontSize="50" Click="SubmitCodeButton_Click" />
				<Button Content="#" Grid.Column="3" Grid.Row="3" FontSize="50" Click="ClearCodeButton_Click" />
				<Button Content="0" Grid.Column="1" Grid.Row="3" FontSize="50" Click="NumberButton_Click" />
				<Button Content="1" Grid.Column="0" Grid.Row="2" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="2" Grid.Column="1" Grid.Row="2" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="3" Grid.Column="2" Grid.Row="2" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="4" Grid.Column="0" Grid.Row="1" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="5" Grid.Column="1" Grid.Row="1" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="6" Grid.Column="2" Grid.Row="1" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="7" Grid.Column="0" Grid.Row="0" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="8" Grid.Column="1" Grid.Row="0" FontSize="50" Click="NumberButton_Click"/>
				<Button Content="9" Grid.Column="2" Grid.Row="0" FontSize="50" Click="NumberButton_Click"/>
                <Label Name="buildLabel" Content="Build data" Grid.Column="2" Grid.Row="3" Margin="62,306,-397,-261" FlowDirection="RightToLeft"></Label>
            </Grid>
		</TabItem>
	</TabControl>
</Window>
